package com.example.upload.response;


import lombok.Data;

/**
 * @Title: 响应结果类
 * @author hxj
 * @date 2017年12月4日 下午2:48:59
 */
@Data
public class ResponseResult<T>{

	/**
	 * @Fields serialVersionUID
	 */
	private static final long serialVersionUID = -8525509680508090517L;

	private int code;

	private String message;

	public T data;

	public ResponseResult() {
	}

	public ResponseResult(int code, String message, T data) {
		this.code = code;
		this.message = message;
		this.data = data;
	}

	public boolean isSuccess() {
		return code == 0;
	}
}
